<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <style>
    div {
      box-sizing: border-box;
      width: 500px;
      height: 300px;
      border: 1px solid black;
      margin-bottom: 20px;
      padding: 20px;
    }

    .one {
      background-image: url("/images/bg01.jpg");
      background-origin: content-box;
      background-repeat: no-repeat;
    }
  </style>
</head>

<body>
  <div class="one">背景属性1</div>
  <div class="two">背景属性2</div>
  <div class="three">背景属性3</div>
  <div class="four">背景属性4</div>
</body>

</html>